<?php /* Smarty version 2.6.18, created on 2010-03-09 17:39:06
         compiled from edittank.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'edittank.tpl', 40, false),)), $this); ?>
<script type="text/javascript">	
	<?php echo '
		Calendar.setup({
	        inputField     :    "cal[date_installed]",     // id of the input field
	        ifFormat       :    "%Y-%m-%d" ,    // format of the input field
	        displayArea    :    "date_installed",
	        daFormat       :    "%Y-%m-%d",      // format of the display area
	        button         :    "f_trigger_c1",  // trigger for the calendar (button ID)
	        align          :    "Bl",           // alignment (defaults to "Bl")
	        singleClick    :    true,
			//onUpdate	   :    endDateChanged, //event to call after calendar is closed
	        weekNumbers    :    false,
	        zIndex		   :	2000
	    });
									    
	'; ?>

</script>
<form name="mainForm" method="POST" id="mainForm">
<input type="hidden" name="user[tank_id]" value="<?php echo $this->_tpl_vars['tank']['tank_id']; ?>
">
<table class="popup" border="0" cellspacing=0 cellpadding=0>
	<tr><td><div class="pop">
		<div class="top_pop"><img src="/app/default/www/images/top_left_pop.jpg" /></div> 
		<div id="drag_bar"><h2 class="pop_h2">Edit Tank</h2></div>
		<div class="content">
			<table border="0" width="100%">
				<tr>
					<td nowrap>System Name:</td>
					<td><input type="text" name="user[system_name]" value="<?php echo $this->_tpl_vars['tank']['system_name']; ?>
" size="50"></td>
				</tr>				
				<tr>
					<td nowrap>Tank Name:</td>
					<td><input type="text" name="user[name]" value="<?php echo $this->_tpl_vars['tank']['name']; ?>
" size="10"></td>
				</tr>
				<tr>
					<td>Description:</td>
					<td><input type="text" name="user[description]" value="<?php echo $this->_tpl_vars['tank']['description']; ?>
" size="50"></td>
				</tr>
				<tr>
					<td nowrap>Date Installed:</td>
					<!-- <td><input type="text" name="user[date_installed]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['tank']['date_installed'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
" size="10"></td> -->
					
					<td>
						<input style="float:left" type="hidden" name="user[date_installed]" id="cal[date_installed]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['tank']['date_installed'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
" size="10"> 
						<span id="date_installed"  style="width:80px; display:block; float:left; height:15px; text-align:center;"><?php echo ((is_array($_tmp=$this->_tpl_vars['tank']['date_installed'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
						<input style="float:left" type="image" src="/app/default/www/images/calendar.jpg" align="absmiddle" id="f_trigger_c1" style="cursor: pointer; border: 0px ;" title="Date selector"/>
						<input type="hidden" name="dateYui" value="cal[date_installed]/date_installed/f_trigger_c1">
					</td>		
						
					
					<!-- <td width="15%"><span id="fromContainer"  style="width:80px; display:block; float:left; height:15px; text-align:center;"><?php echo ((is_array($_tmp=$this->_tpl_vars['date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
					<input style="float:left" type="hidden" name="search[datefrom]"  value="<?php echo $this->_tpl_vars['date']; ?>
" id="user[datefrom]"> 
					<input style="float:left" type="image" src="/app/default/www/images/calendar.jpg" align="absmiddle" id="f_trigger_c1" style="cursor: pointer; border: 0px ;" title="Date selector"  />
					<input type="hidden" name="dateYui" value="user[datefrom]/fromContainer/f_trigger_c1">
				</td> -->
				
					
				</tr>
				<tr>
					<td>Dimensions</td>
					<td><input type="text" name="user[dimensions]" value="<?php echo $this->_tpl_vars['tank']['dimensions']; ?>
" size="15"></td>
				</tr>
				<tr height="30px">
					<td colspan="2" align="center" style="padding-top: 20px">
						<input type="button" value="Save" onclick="saveTank();">&nbsp;
						<input type="button" value="Close" onclick="popup('editTank');">
					</td>
				</tr>
			</table>
		</div>
		<div class="btm_pop"><img src="/app/default/www/images/btm_left_pop.jpg"  alt="" />
	</div></td></tr>
</table>
</form>
<script language="javascript">
<?php echo '
	function saveTank() {
		popup(\'editTank\');
		doajaxAction("/account/saveTank/",1,\'main_content\',document.getElementById(\'mainForm\'));
	}

'; ?>

</script>
	